package com.forenow.zuoye;

public class Lap {
    char color;
    int cpu;
    public char getColor() {
        return color;
    }

    public void setColor(char color) {
        this.color = color;
    }

    public int getCpu() {
        return cpu;
    }

    public void setCpu(int cpu) {
        this.cpu = cpu;
    }


    public Lap(){
        this.color='g';
        this.cpu=1022238877;

    }
    public Lap(char color,int cpu){
        this.color=color;
        this.cpu=cpu;
    }
    public void show(char x,int y){
        System.out.println(x+","+y);
    }

    public static void main(String[] args) {
        Lap lap1=new Lap('r',100023);
        lap1.show(lap1.getColor(),lap1.getCpu());
        Lap lap2 = new Lap();
        lap2.show(lap2.getColor(),lap2.getCpu());
    }
}
